;define(function (require, exports, module) {
    'use strict';
    var organizationStatus = ["","正常","冻结","废除"]; //组织状态
    var operateType = ["","新增","追加","归还 "]; //操作类型
    var settlementType = ["","阶段收息","提货结息 "]; //组织状态
    var acceptRoleStatus = ["","物流方","企业用户","系统内部"]; //公告接受对象选择
    var auditType = ["","未审核","审核拒绝","审核通过"];//审核状态
    var expenditure = ["","付款单","收款单"]//收支类型 0:/1:付款单/2:收款单
    var tallyingState = ["","待理货","不接受(拒绝)","理货中(已接受)","已完成","已上报"];
    var tallyingState1 = ["待理货", "已理货"];
    var supervisionState = ["未监管", "已上报", "收货确认", "已监管", "解除监管 "];//监管状态
    var productType = ["", "舱单代采", "舱单质押", "仓储质押", "保理融资", "代理采购", "代理销售"];//产品类型
    var productType1 = ["", "舱单代采", "舱单质押", "仓储质押", "保理融资", "代理采购", "代理销售"];//产品类型
    var handleState =["","未处理","已接受","调查中 ","处理完毕"];//处理状态
    var insuranceState = ["","待审批","已生效","已撤销","已拒绝"];  //散客/团队的类型
    var abnormal = ["异常","正常"];
    var harborState = ["未到港", "已到港"];
    var abnormalState = ["","货损","丢失"];//异常类别
    var noticeState = ["","待接收","已接收","已完成"]//
    var noticeState1 = ["","未确认","已确认","已完成","已取消"]//通知状态
    var licensingStatus = ["待审核","有效"]//授权状态
    var abnormalSource=["","责任人处置","伤亡情况","设备损坏","异常调查","整改总结 "]//费用类型 
    var auditState =["待提交","待审核","审核通过","审核拒绝","审核完成","重新制章"]
    var liability = ["","主责","副责","全责"]//责任判定
    var supplierExit=["无效","有效"]//0-无效；1-有效
    var abnormalType =["","理货异常","签收异常","扣货异常","运输异常"]// 异常环节 0:/1:理货异常/2:签收异常/3:扣货异常/4:运输异常 
    var readFlag =["","未读","已读"]//已读未读
    var productScope=["","客户","物流","监管"] //客户类型
    var productState =["","待提交","待审核","待公布", "已公布","已停用"]
    var expenseMethod =["","按自然箱","按标准箱","按货","按单","按日"] //计算方式  
    var orderAuditState = ["","申请中","未通过","已通过","已取消","订单完成"] //审核状态 
    var changeState = ["","待处理","处理中","已处理","已取消"]//退改签申请状态 
	var financeState = ["已取消","审批中","待确认","已审批","审批不通过","合同已签订","待验货","已验货","待放款","已放款","提货审批中","提货不通过","换货审批中","换货不通过","提货已审批","待放货","放货中","已签收","已完成","已评价","待提交","初审通过","待签订合同","待政审","待客户签署合同","提货审批中","部分还款","已结清","提货审批拒绝","提货取消","已完成","待增补合同"];
	var financeType = ["", "融资", "换货"];
	var financeTypeColor = ["", "#6ba8e7", "#35c38b"];
	var loanMethod = ["", "按日计息", "固定计息"];
	var letterType = ["", "项目动态", "异常通知", "操作提醒"];
	var operatorRole = ["", "平台", "物流", "企业 "];
	var applicationState = ["", "待审批", "同意", "拒绝", "已收款", "已放货", "违约", "取消"];
	var pickupMethod = ["", "提货", "换货","换箱"];
	var pickupMethod1 = ["自提", "物流公司运输"];
	var deliveryMethod = ["", "到港", "到门"];
	var deliveryMethod1 = ["", "门到门", "门到港", "港到港", "港到门 "];
	var accidents = {"0":"","11":"批评","12":"警告","13":"罚款","14":"通报","15":"辞退","41":"特大事故","42":"重大事故","43":"一般事故","44":"普通异常"};
	var nature = {"0":"","21":"死亡","22":"重伤","23":"轻伤","31":"报废","32":"维修","33":"赔偿"};
	var claimState = ["","理赔中","已销案","已结案"];
    var receivablesMethod=["","现金","支票","转账"];
    var authenticatState = ["","未确认","已确认"];
    var beneficiaryMethod = ["","现金","支票","转账"];
    var receivablesState = ["","待审核","已审核","审核通过","审核拒绝"];
    var unit = ["", "吨", "公斤", "立方米"];
    var statementSource = {"PENALTY_INTEREST": "罚息", "EXCHANGE_AMOUNT": "换箱费", "FINANCE_AUDIT":"保证金","INSURANCE":"保险","LOAN_NOTICE":"放款","ABNORMAL_EXPENSE":"异常费用","RECEIVABLES":"收款","BAIL_ADDITION":"保证金追加","BAIL_RETURN":"保证金退还","LOANS_MONEY":"资金拆入","LOANS_MONEY_RETURN":"资金归还","CLAIM_SETTLEMENT":"理赔","QUARTER_SETTLEMENT":"利息结算", "PICKUP_OTHER_AMOUNT":"其他费用", "COMMISSION_SETTLEMENT": "佣金", "RECEIVABLES_WAREHOUSE": "收款", "QUARTER_SETTLEMENT_INTEREST": "利息结算", "QUARTER_SETTLEMENT_OTHERS": "其他费用", "QUARTER_SETTLEMENT_INTEREST_MONTH": "利息结算", "QUARTER_SETTLEMENT_MONTH": "月服务费"};
    var statementSource1 = {"PENALTY_INTEREST": "罚息", "EXCHANGE_AMOUNT": "换箱费", "FINANCE_AUDIT":"保证金","INSURANCE":"保险","LOAN_NOTICE":"放款","ABNORMAL_EXPENSE":"异常费用","RECEIVABLES":"现金提货","BAIL_ADDITION":"保证金追加","BAIL_RETURN":"保证金退还","LOANS_MONEY":"资金拆入","LOANS_MONEY_RETURN":"资金归还","CLAIM_SETTLEMENT":"理赔","QUARTER_SETTLEMENT":"利息结算", "PICKUP_OTHER_AMOUNT":"其他费用", "COMMISSION_SETTLEMENT": "佣金", "RECEIVABLES_WAREHOUSE": "收款", "QUARTER_SETTLEMENT_INTEREST": "利息结算",  "QUARTER_SETTLEMENT_OTHERS": "其他费用", "QUARTER_SETTLEMENT_INTEREST_MONTH": "利息结算", "QUARTER_SETTLEMENT_MONTH": "月服务费"};
    var deliveryState = ["", "未确认", "拒绝", "配送中", "已完成"];
    var interestMethod = ["", "按日计息", "固定计息"];
    var latestAbnormalResult = ["未处理", "退货", "换箱", "调额度", "已正常"];
    var detainedState = ["已扣货", "正常"];
    var booleanFlag = {"true": "是", "false": "否"};
    var plugType = ["", "全程插电", "起运港插电", "目的港插电"];
    var tempUpDown = ["零上", "零下"];
    var tempUnit = {"F": "华氏度", "C": "摄氏度"};
    var measurement = ["", "体积", "重量"];
    var businessAuditState = {"true": "同意", "false": "拒绝"};
    var frequency = ["全部", "小时", "天", "月"];//预警方案处理频度 
    var treatmentMethod = ["全部", "短信", "APP", "网页"];//预警方案处理方式 
    var factor = ["商品价格", "赎货时效", "处置时效", "合同逾期"];//预警方案预警因素  
    var warningLevel = ["黄色预警", "红色预警"];
    var relationType = ["相等", "高于", "低于"];
    var cardStatus = ["待启用", "启用", "停用", "待审核", "审核同意", "审核拒绝"];
    var statementState = ["", "未支付", "已付款", "已支付"];
    var auditTask = ["", "融资审批", "放款审批", "提货审批", "用户资质认证", "用户等级调整", "临时额度调整", "代采代销提货"];
    var auditState1 = ["拒绝", "同意"];
    var settlementMethod = ["", "先货后款", "先款后货"];
    var callback = {"false": "", "true": "(已打回)"};
    var fileSignState = ["未签署", "客户已签署", "平台已签署", "双方已签署", "已退回", "已打回", "已确认"];
    var fileSignState1 = ["-", "客户已签署", "平台已签署", "双方已签署", "已退回", "已打回", "已确认"];
    var sealType = ["未知", "法人印章", "企业印章", "财务印章", "其他"];
    var signState = ["待签署", "签署成功", "签署失败", "已取消"];
    var enterpriseType = ["客户", "分销商"];
    var scardType = ["普通营业执照（存在独立的组织机构代码证）", "多证合一营业执照（不存在独立的组织机构代码证）"];
    var legalArea = ["中国大陆", "香港", "澳门", "台湾", "外籍"];
    var unitTypeId = ["普通企业", "社会团体", "事业单位", "民办非企业单位", "党政及国家机关"];
    var financeConstractState = ["合同未上传", "合同已上传", "合同已提交", "待客户签署", "客户已提交", "待平台签署", "平台已经签署", "合同已打回", "合同待确认", "合同已打回"];
    var pickupState = ["待提交", "已取消", "初审中", "合同待上传", "合同待提交", "待客户签署", "待平台签署", "合同待确认", "合同已打回", "平台已签署", "政审中", "待放货", "已放货", "审批拒绝"];
//  var finalState = ["","业务部","业务领导","风控部","风控领导","运营部","运营领导","法务部","法务部领导","资金部","资金领导","执行董事","总经理","实习生","已完成","融资初审完成","业务副总","副总经理","业务总监","副总经理","市场部确认&财务部确认&运营部确认","市场部确认&财务部确认","市场部确认&运营部确认","财务部确认&运营部确认","商务部","商务领导"];
	var finalState = {"1": "业务部", "17": "业务部", "2":"业务领导","3":"风控部","18":"风控部","4":"风控领导","5":"运营部","6":"运营领导","7":"法务部","9":"资金部","10":"资金领导","11":"董事长","12":"总经理", "13":"实习生", "14": "已完成", "15": "融资初审完成", "21": "业务副总",  "20": "副总经理", "19": "业务总监", "22": "市场部确认&财务部确认&运营部确认", "16": "市场部确认&财务部确认", "23": "市场部确认&运营部确认", "24": "财务部确认&运营部确认", "25": "商务部", "26": "商务部领导"};
    var careteMethod = ["自动", "手动"];
    
    var getValueByKey = function(type, key){
    	if (key != null) {
    		key = key.toString();
    	}
        switch(type){
            case 1:
                return organizationStatus[key];
                break;
            case 2:
                return acceptRoleStatus[key];
                break;
            case 3:
                return auditType[key];
                break;
            case 4:
                return expenditure[key];
                break;
            case 5:
                return supervisionState[key];
                break;
            case 6:
                return applicationState[key];
                break;
            case 7:
                return productType[key];
                break;
            case 8:
                return handleState[key];
                break;
            case 9:
                return insuranceState[key];
                break;
            case 10:
                return abnormal[key];
                break; 
            case 11:
                return abnormalState[key];
                break;
            case 12:
                return noticeState[key];
                break;
            case 13:
                return licensingStatus[key];
                break;
            case 14:
                return statementSource1[key];
                break;
            case 15:
                return abnormalSource[key];
                break;
            case 16:
                return accidents[key];
                break;
            case 17:
                return pickupMethod[key];
                break;
            case 18:
                return auditState[key];
                break;
            case 19:
                return liability[key];
                break;
            case 20:
                return supplierExit[key];
                break;
            case 21:
                return auditState2[key];
                break;
            case 22:
                return abnormalType[key];
                break;
            case 23:
                return readFlag[key];
                break;
            case 24:
                return deliveryMethod[key];
                break;
            case 25:
                return productScope[key];
                break;
            case 26:
                return productState[key];
                break;
            case 27:
                return expenseMethod[key];
                break;
            case 28:
                return orderAuditState[key];
                break;
            case 29:
                return changeState[key];
                break;
            case 30:
            	return financeState[key];
            	break;
            case 31:
            	return financeType[key];
            	break;
            case 32:
            	return financeTypeColor[key];
            	break;
            case 33:
            	return loanMethod[key];
            	break;	
            case 34:
            	return letterType[key];
            	break;	
            case 35:
            	return operatorRole[key];
            	break;
        	case 36:
	        	return nature[key];
	        	break;
	        case 37:
	        	return tallyingState[key];
	        	break;
	        case 38:
	        	return receivablesMethod[key];
	        	break;
	        case 39:
	        	return claimState[key];
	        	break;
	        case 40:
	        	return authenticatState[key];
	        	break;
	        case 41:
	        	return beneficiaryMethod[key];
	        	break;
	        case 42:
	        	return receivablesState[key];
	        	break;
	        case 43:
	        	return unit[key];
	        	break;
	        case 44:
	        	return statementSource[key];
	        	break;
	        case 45:
	        	return deliveryState[key];
	        	break;
	        case 46:
	        	return interestMethod[key];
	        	break;
	        case 47:
	        	return noticeState1[key];
	        	break;
	        case 48:
	        	return deliveryMethod1[key];
	        	break;
	        case 49:
	        	return latestAbnormalResult[key];
	        	break;
	        case 50:
	        	return detainedState[key];
	        	break;
	        case 51:
	        	return productType1[key];
	        	break;
	        case 52:
	        	return booleanFlag[key];
	        	break;
	        case 53:
	        	return plugType[key];
	        	break;
	        case 54:
	        	return tempUpDown[key];
	        	break;
	        case 55:
	        	return tempUnit[key];
	        	break;
	        case 56:
	        	return measurement[key];
	        	break;
	        case 57:
	        	return financeConstractState[key];
	        	break;
	        case 58:
	        	return businessAuditState[key];
	        	break;
	        case 59:
	        	return operateType[key];
	        	break;
	        case 60:
	        	return frequency[key];
	        	break;
	        case 61:
	        	return treatmentMethod[key];
	        	break;
	        case 62:
	        	return factor[key];
	        	break;
	        case 63:
	        	return warningLevel[key];
	        	break;
	        case 64:
	        	return relationType[key];
	        	break;
	        case 65:
	        	return harborState[key];
	        	break;
	        case 66:
	        	return cardStatus[key];
	        	break;
	        case 67:
	        	return tallyingState1[key];
	        	break;
	        case 68:
	        	return statementState[key];
	        	break;
	        case 69:
	        	return auditTask[key];
	        	break;
	        case 70:
	        	return auditState1[key];
	        	break;
	        case 71:
	        	return callback[key];
	        	break;
	        case 72:
	        	return settlementMethod[key];
	        	break;
	        case 73:
	        	return fileSignState[key];
	        	break;
	        case 74:
	        	return sealType[key];
	        	break;
	        case 75:
	        	return signState[key];
	        	break;
	        case 76:
	        	return enterpriseType[key];
	        	break;
        	case 77:
	        	return scardType[key];
	        	break;
	        case 78:
	        	return legalArea[key];
	        	break;
	        case 79:
	        	return unitTypeId[key];
	        	break;
	        case 80:
	        	return fileSignState1[key];
	        	break;
	        case 81:
	        	return pickupMethod1[key];
	        	break;
	        case 82:
	        	return pickupState[key];
	        	break;
	        case 83:
	        	return finalState[key];
	        	break;
	        case 84:
	        	return careteMethod[key];
	        	break;
            default:
                return "不详";
                break;
        }
    };
    return {
        getValueByKey:getValueByKey,
    }
});